<%@ page contentType="text/html; charset=gb2312" pageEncoding="GBK"%>
<%@ page
	import="scsc.pub.db.DBManage,java.io.*,java.text.*,java.util.*,java.sql.*,DBstep.iDBManager2000.*"%>
<%String mBookMarkID = new String(request.getParameter("BookMarkID"));
			boolean mResult = false;

			DBManage dbmanage = new DBManage();
			Connection conn = null;
			java.sql.PreparedStatement prestmt = null;
			ResultSet result = null;
			try {
				if (dbmanage.getSession().isConnected()) {
					conn = dbmanage.getSession().connection();
					String mSql = "Delete from BookMarks where BookMarkID = "
							+ mBookMarkID;
					prestmt = conn.prepareStatement(mSql);
					conn.setAutoCommit(false);
					prestmt.executeUpdate();
					conn.commit();
					mResult = true;
				} else {
					mResult = false;
				}
			} finally {
				try {
					result.close();
					prestmt.close();
					conn.close();
					dbmanage.close();
				} catch (Exception e) {
					System.out.println(e.toString());
				}
			}
			if (mResult) {
				response.sendRedirect("BookMarkList.jsp");
			}

		%>
